@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal" id="addForm">

            <input type="hidden" id="id" value="${loanProduct.id}">

            <input type="hidden" id="icompanyId" value="${loanProduct.companyId}">
            <input type="hidden" id="ilabels" value="${labelids}">
            <input type="hidden" id="istatus" value="${loanProduct.status}">
            <input type="hidden" id="imaxCycleC" value="${loanProduct.maxCycleC}">
            <input type="hidden" id="iminCycleC" value="${loanProduct.minCycleC}">

            <div class="row">
                <div class="form-group">
                    <div class="col-lg-10">
                        <#selectPicker  id="companyId" name="贷款公司" options="${companyList}" underline="true"/>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-sm-6 b-r">
                    <#input id="productName" name="产品名称" underline="true" value="${loanProduct.productName}"/>
                    <#input id="advantage" name="平台优势" underline="true"  value="${loanProduct.advantage}"/>
                    <#input id="minQuato" name="放款最小额（元）" underline="true" value="${loanProduct.minQuato}"/>
                    <#input id="maxQuato" name="放款最大额（元）" underline="true"  value="${loanProduct.maxQuato}"/>
                    <#input id="lendSpeed" name="审核周期（天）" underline="true" value="${loanProduct.lendSpeed}"/>
                    <#input id="dailyInterestRate" name="日利率（%）" underline="true" value="${loanProduct.dailyInterestRate}"/>
                    <#textarea  id="applyCondition"  name="申请条件" underline="true" value="${loanProduct.applyCondition}"/>
                    <#textarea  id="briefIntroduction"  name="产品简介" underline="true" value="${loanProduct.briefIntroduction}"/>
                </div>

                <div class="col-sm-6">
                    <#avatar id="productImg" name="产品图片" underline="true" avatarImg="${loanProduct.productImg}"/>
                    <!--<#input id="lendSpeed" name="放款速度（天）" underline="true"  value="${loanProduct.lendSpeed}"/>-->
                    <!--<#input id="minCycle" name="最短周期（天）" underline="true" value="${loanProduct.minCycle}"/>-->
                    <!--<#input id="maxCycle" name="最长周期（天）" underline="true"  value="${loanProduct.maxCycle}"/>-->


                    <div class="form-group has-feedback">
                        <label class="col-sm-3 control-label">最短周期</label>
                        <div class="col-sm-5">
                            <input class="form-control" id="minCycle" name="minCycle" type="text" data-bv-field="maxCycle" value="${loanProduct.minCycle}"/>
                            <i class="form-control-feedback" data-bv-icon-for="maxCycle" style="display: none;"></i>
                            <small class="help-block" data-bv-validator="regexp" data-bv-for="minCycle" data-bv-result="NOT_VALIDATED" style="display: none;"><!--最短周期最小值为1，最大值1000-->请输入 1 ~ 1000 间整数</small>
                            <!--<small class="help-block" data-bv-validator="callback" data-bv-for="minCycle" data-bv-result="NOT_VALIDATED" style="display: none;">最短周期应小于最长周期!</small>-->
                        </div>
                        <div class="col-sm-4">
                            <select class="form-control" id="minCycleC" name="minCycleC" data-bv-field="minCycleC"/>
                                <option value="1" selected="selected">天</option>
                                <option value="30">月</option>
                                <option value="365">年</option>
                            </select>
                            <select class="form-control" id="minCycleC1" name="minCycleC1" style="display:none">
                                <option value="1">天</option>
                                <option value="30">月</option>
                                <option value="365">年</option>
                            </select>
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>
                    <div class="form-group has-feedback">
                        <label class="col-sm-3 control-label">最长周期</label>
                        <div class="col-sm-5">
                            <input class="form-control" id="maxCycle" name="maxCycle" type="text" data-bv-field="maxCycle" value="${loanProduct.maxCycle}"/>
                            <i class="form-control-feedback" data-bv-icon-for="maxCycle" style="display: none;"></i>
                            <small class="help-block" data-bv-validator="notEmpty" data-bv-for="maxCycle" data-bv-result="NOT_VALIDATED" style="display: none;">最长周期不能为空</small>
                            <small class="help-block" data-bv-validator="regexp" data-bv-for="maxCycle" data-bv-result="NOT_VALIDATED" style="display: none;"><!--最长周期为-->请输入 1 ~ 1000 间整数</small>
                            <!--<small class="help-block" data-bv-validator="callback" data-bv-for="maxCycle" data-bv-result="NOT_VALIDATED" style="display: none;">最长周期应大于最小周期</small>-->
                        </div>
                        <div class="col-sm-4">
                            <select class="form-control" id="maxCycleC" name="maxCycleC" data-bv-field="maxCycleC"/>
                                <option value="1" selected="selected">天</option>
                                <option value="30">月</option>
                                <option value="365">年</option>
                            </select>
                            <select class="form-control" id="maxCycleC1" name="maxCycleC1"  style="display:none">
                                <option value="1">天</option>
                                <option value="30">月</option>
                                <option value="365">年</option>
                            </select>
                        </div>
                    </div>


                    <#selectPicker id="labels" name="标签" options="${labels}" multiple="true" underline="true"/>
                    <#textarea  id="requireDocument"  name="所需资料" underline="true"  value="${loanProduct.requireDocument}"/>
                    <#textarea  id="remark"  name="备注" underline="true"  value="${loanProduct.remark}"/>
                </div>
            </div>
            <div class="row">
                <#input id="link" name="H5跳转链接" underline="true"  value="${loanProduct.link}"/>
            </div>


            APP显示设置
            <div class="row">
                <div class="col-sm-6 b-r">
                    <#select id="status" name="状态" underline="true" underline="true" >
                        <option value="0" selected="selected">禁用</option>
                        <option value="1">启用</option>
                    </#select>
                </div>

                <div class="col-sm-6">
                </div>


            </div>

            <div class="row btn-group-m-t">
                <div class="col-sm-10">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="LoanProductInfoDlg.editSubmit()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="LoanProductInfoDlg.close()"/>
                </div>
            </div>
        </div>

    </div>
</div>
<script src="${ctxPath}/static/modular/platform/loanProduct/loanProduct_info.js"></script>
@}
